/**
 * SubClassTest.java
 * - Brief Description Goes Here _
 *
 * @author jt
 * Class:  CIS252 Intro to Java Programming
 * Date:   Summer 2008
 */


/**
 * SubClassTest
 */
public class SubClassTest {

  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
    Dog d1 = new Dog();
    Dog d2 = new Stray();
    
    d1.bark();
    d2.bark();
    
    System.out.println(d1.getClass().getName());
    
  }//End main()

}//End SubClassTest Class


class Dog {
  public Dog(){
    
  }
  public void bark(){
    System.out.println("Woof! Woof! Man I said \"WOOF!!!\"");
    Stray.bite();
  }
}

class Stray extends Dog {
  public static void bite(){
    System.out.println("Chomp! Chomp! By the way I have rabies... CHOMP!");
  }
}